<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
    <%@page import="java.util.*" %>
    <%@page import="com.phome.entity.Product" %>
    <%@page import="com.phome.entity.Question" %>
    <%@page import="com.phome.entity.Product_Case" %>
    <%@taglib prefix="s" uri="/struts-tags" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>搜索结果</title>
</head>
<body>
<s:iterator value="#request.qList" var="q">
	<s:if test="#q != null || #q.size() < 1">
<%List<Question> list = (List<Question>)request.getAttribute("qList");
request.setAttribute("list", list);
request.getRequestDispatcher("download.jsp").forward(request, response); %>
	</s:if>
</s:iterator>
<s:iterator value="#request.cases" var="q">
	<s:if test="#q != null || #q.size() > 0">
<%List<Product_Case> list = (List<Product_Case>)request.getAttribute("cases");
request.setAttribute("list", list);
request.getRequestDispatcher("case.jsp").forward(request, response); %>
	</s:if>
</s:iterator>

<s:iterator value="#request.product" var="q">
	<s:if test="#q != null || #q.size() > 0">
<%List<Product> list = (List<Product>)request.getAttribute("product");
request.setAttribute("list", list);
request.getRequestDispatcher("products.jsp").forward(request, response); %>
	</s:if>
</s:iterator>

</body>
</html>